package com.uinnova.product.eam.init.schedule.job;

import com.uinnova.product.eam.service.ArchReviewRotaConfService;
import lombok.extern.log4j.Log4j2;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

@Component
@Log4j2
public class StartRotaConfJob extends QuartzJobBean {

    @Autowired
    private ArchReviewRotaConfService rotaConfService;

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        log.info("启用值班表配置任务begin---");
        rotaConfService.startRotaConfJob();
        log.info("启用值班表配置任务end---");
    }
}
